package com.hnd.test.pojo;

public class Dog {
    private String name ;
    private Food favoriteFood;

    public Dog() {
    }

    public Dog(String name, Food favoriteFood) {
        this.name = name;
        this.favoriteFood = favoriteFood;
    }

    public Dog(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

   public  void run() {
        System.out.println("dog is run "+this.name + "| "+this.favoriteFood);
    }

    public Food getFavoriteFood() {
        return favoriteFood;
    }

    public void setFavoriteFood(Food favoriteFood) {
        this.favoriteFood = favoriteFood;
    }
}
